<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
  
    <title>transform3D</title>
    
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        body {
            perspective: 10000px;
        }
        ul {
            position: relative;
            width: 300px;
            height: 200px;  
            margin: 500px auto;
            transform-style: preserve-3d;
            animation: rotate 20s linear infinite;
        }
        @keyframes rotate {
            0% {
                transform: rotate3d(0,1,0,0) rotateX(0);
            }
            100% {
                transform: rotate3d(0,1,0,1080deg) rotateX(30deg);
            }
        }
        
        li {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: pink;
            list-style: none;
           
        }
       .p1 {
            transform: translate3d(0,0,1000px)  rotateY(0deg);
       }
       .p2 {
            transform: translate3d(500px,0,866px)  rotateY(30deg);
       }
       .p3 {
            transform: translate3d(866px,0,500px)  rotateY(60deg);
       }
       .p4 {
            transform: translate3d(1000px,0,0px)  rotateY(90deg);
       }
       .p5 {
            transform: translate3d(886px,0,-500px)  rotateY(120deg);
       }
       .p6 {
            transform: translate3d(500px,0,-866px)  rotateY(150deg);
       }
       .p7 {
            transform: translate3d(0,0,-1000px)  rotateY(180deg);
       }
       .p8 {
            transform: translate3d(-500px,0,-866px)  rotateY(210deg);
       }
       .p9 {
            transform: translate3d(-866px,0,-500px)  rotateY(240deg);
       }
       .p10 {
            transform: translate3d(-1000px,0,0px)  rotateY(270deg);
       }
       .p11 {
            transform: translate3d(-866px,0,500px)  rotateY(300deg);
       }
       .p12 {
            transform: translate3d(-500px,0,866px)  rotateY(330deg);
       }
 
    </style>
</head>
<body>
   <ul>
       <li class="p1"><img src="dog.jpg" alt=""></li>
       <li class="p2"> <img src="dog.jpg" alt=""></li>
       <li class="p3"> <img src="dog.jpg" alt=""></li>
       <li class="p4"> <img src="dog.jpg" alt=""></li>
       <li class="p5"> <img src="dog.jpg" alt=""></li>
       <li class="p6"> <img src="dog.jpg" alt=""></li>
       <li class="p7"> <img src="dog.jpg" alt=""></li>
       <li class="p8"> <img src="dog.jpg" alt=""></li>
       <li class="p9"> <img src="dog.jpg" alt=""></li>
       <li class="p10"><img src="dog.jpg" alt=""></li>
       <li class="p11"><img src="dog.jpg" alt=""></li>
       <li class="p12"><img src="dog.jpg" alt=""></li>
   </ul>

    
</body>
</html>